//
//  TooltipController.m
//  blackjack
//
//  Created by Thi Nguyen Tran on 4/9/10.
//  Copyright 2010 Epsilon. All rights reserved.
//

#import "TooltipController.h"


@implementation TooltipController

- (void)setDealerCard:(int)val {
	int tmp = val;
	if(val == 1) {
		[dealerCard_ setText:@"Dealer's card: A"];
		return;
	}
	else if(val > 10) {
		tmp = 10;
	}
	[dealerCard_ setText:[NSString stringWithFormat:@"Dealer's card: %d", tmp]];
}

- (void)setPlayerCardValue:(int)val {
	[playerCards_ setText:[NSString stringWithFormat:@"Player's card value: %d", val]];
}

- (void)setAction:(NSString *)act {
	[action_ setText:act];
}

- (void)viewDidLoad {
	[super viewDidLoad];
	
	[dealerCard_ setText:@""];
	[playerCards_ setText:@""];
	[action_ setText:@""];
	CGRect frame = CGRectMake(0, 0, 120, 100);
	self.view.frame = frame;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (void)dealloc {
    [super dealloc];
}


@end
